#ifndef UCLIENT_H
#define UCLIENT_H

#ifdef __cplusplus
   extern "C" {
#endif
#include "uthash.h"

typedef int (*cli_parse_cb)(int );

typedef struct _Ucli_Info
{
	int uc_symbol;
    char *path;
	int uc_fd;
    int uc_dev;
	cli_parse_cb uc_cb;
	UT_hash_handle hh;
}Ucli_Info;

int ucli_recv(int symbol, void *buf, size_t len);
int ucli_send(int symbol, void *buf, size_t len);
void ucli_destroy(int symbol);
int ucli_create(const char *path, int dev, cli_parse_cb cb);

#ifdef __cplusplus
	}
#endif

#endif	/*UCLIENT_H*/